﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.JsonConvertHelper;

namespace Common.CommonModel
{
    /// <summary>
    /// 请求返回公共模型
    /// </summary>
    public class ResponseModel
    {
        /// <summary>
        /// 操作码
        /// </summary>
        //[JsonConverter(typeof(ConvertEnumToValue))]
        public ResponseTypeEnum code { get; set; }
        /// <summary>
        /// 返回消息
        /// </summary>
        [JsonConverter(typeof(ConvertEnumToDescription))]
        public object message { get; set; }
        /// <summary>
        /// 返回的数据模型
        /// </summary>
        public object model { get; set; }
    }

}
